package User_webservice;
import java.util.List;

import javax.jws.WebService;
import javax.jws.WebMethod;

import Entitiy.GeocachingGame;
import Entitiy.Item;
import Entitiy.Team;
import Entitiy.User;
@WebService(name = "HelloWS", targetNamespace = 
		"http://hello_webservice/")
public interface AndroidWS {
	@WebMethod(operationName = "CreateUser")
	public boolean CreateUser(User user);
	@WebMethod(operationName = "LoginUser")
	public User LoginUser(User user);
	@WebMethod(operationName = "CreateGame")
	public boolean CreateGame(GeocachingGame game);
	@WebMethod(operationName="GetGames")
	public List<GeocachingGame> GetGames();
	@WebMethod(operationName="JoinGame")
	public boolean JoinGame(GeocachingGame game, User user);
	@WebMethod(operationName="CreateTeam")
	public boolean CreateTeam(Team team);
	@WebMethod(operationName="JoinTeam")
	public boolean JoinTeam(Team team, User user);
	@WebMethod(operationName="LeaveTeam")
	public boolean LeaveTeam(Team team, User user);
	@WebMethod(operationName="PlaceItem")
	public boolean PlaceItem(GeocachingGame game, Item item);
	@WebMethod(operationName="RetrieveItems")
	public List<Item> RetrieveItems(String name);
}
